Skip to content

bugfix(websocket): Prevent double-shutdown and ensure proper libcurl resource cleanup#487

Merged
x64-dev merged 1 commit intomainfrom
seer/bugfix/websocket-shutdown-cleanup
May 7, 2026
Merged

bugfix(websocket): Prevent double-shutdown and ensure proper libcurl resource cleanup#487
x64-dev merged 1 commit intomainfrom
seer/bugfix/websocket-shutdown-cleanup

Conversation

@seer-by-sentry
Copy link
Copy Markdown

@seer-by-sentry seer-by-sentry Bot commented May 7, 2026

Fixes CLIENT-4GK. The issue was that: Use-after-free on m_pWebSocket during NGMP_OnlineServicesManager teardown, leading to memory corruption and NtUserShowSystemCursor crash.

  • Added checks to prevent WebSocket::Shutdown() from executing multiple times, resolving issues with redundant calls from the destructor.
  • Ensured proper libcurl resource cleanup by calling curl_multi_remove_handle before curl_easy_cleanup.
  • Improved WebSocket::Shutdown() to consistently clean up curl_easy and curl_multi handles, even if the connection was not fully established.

This fix was generated by Seer in Sentry, triggered by x64-dev. 👁️ Run ID: 13836254

Not quite right? Click here to continue debugging with Seer.

@seer-by-sentry seer-by-sentry Bot requested a review from x64-dev May 7, 2026 20:49
@x64-dev x64-dev marked this pull request as ready for review May 7, 2026 20:59
@x64-dev x64-dev merged commit 1989340 into main May 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant